﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace BACKOFFICE
{
    public partial class MenuItms : DevExpress.XtraEditors.XtraUserControl
    {
        public MenuItms()
        {
            InitializeComponent();
            menuItemsTableAdapter.Fill(rabbitSoftwareDataSet.MenuItems);
            
            menuItemsDataGridView.BackgroundColor = this.BackColor;
            menuItemsDataGridView.ForeColor = Color.Black;
        }

        private void MenuItms_Load(object sender, EventArgs e)
        {
            foreach(DataRow item in DataTableClass.MenuItemsCategory.Rows)
            {
                comboBoxEdit1.Properties.Items.Add(item[1].ToString().Trim());
            }
            
        }
    }
}
